//
//  EJSSpecCCell.m
//  EnjoyShoppingStreet
//
//  Created by lifayu on 2017/12/27.
//  Copyright © 2017年 lifayu. All rights reserved.
//

#import "EJSSpecCCell.h"
#import "EJSGoodsModel.h"

@implementation EJSSpecCCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSpceModel:(EJSSpecModel *)model{
    self.specNameLabel.text = model.value;
    if(model.specSelectStatus == 0){
        self.specNameLabel.borderWidth = 0;
        self.specNameLabel.borderColor = kClearColor;
        self.specNameLabel.textColor = UIColorFromRGB(0x454553);
        self.specNameLabel.backgroundColor = UIColorFromRGB(0xF6F6F6);
    }else if (model.specSelectStatus == 1){
        self.specNameLabel.borderWidth = 2;
        self.specNameLabel.borderColor = AppMainColor;
        self.specNameLabel.textColor = AppMainColor;
        self.specNameLabel.backgroundColor = kWhiteColor;
    }else{
        self.specNameLabel.borderWidth = 0;
        self.specNameLabel.borderColor = kClearColor;
        self.specNameLabel.textColor = UIColorFromRGBA(0x454553, 0.2);
        self.specNameLabel.backgroundColor = UIColorFromRGB(0xF6F6F6);
    }
}

- (void)setSelected:(BOOL)selected{
    
}

@end
